#ifndef SINA_SINAPLUGIN_H
#define SINA_SINAPLUGIN_H

#include "twcore/IPlugin.h"
#include <QList>
namespace Sina
{
	class SinaContext;
	class SinaPlugin : public TWCore::IPlugin
	{
		public:
			SinaPlugin();
			virtual ~SinaPlugin();

			void initialize();
			bool getConfigWidget( QList<TWCore::IConfigWidget*>& );

			TWCore::IContext* createNewContext();
			TWCore::IContext* createContext( const QByteArray& info );
			void deleteContext( TWCore::IContext* context );
			void unloadContext( TWCore::IContext* context );
		private:
			QList<TWCore::IContext*>	m_contexts;
	};
}
#endif // SINA_SINAPLUGIN_H
